#include <iostream>

#include "Parser.h"

#define TEST_FILE "test-data/salidaCgannotate"
#define TEST_FILE2 "test-data/salidaCgannotate2"

using namespace std;

int main(int argc, const char *argv[]) {
  Parser p;
  p.parsear(TEST_FILE, "lazo_tamanio_bloque");
  
  cout << "Dw:\t" << p.get_dw() << endl;
  cout << "D1mw:\t" << p.get_d1mw() << endl;

  cout << endl << "Segundo test" << endl;

  p.parsear(TEST_FILE2, "main");
  cout << "Dw:\t" << p.get_dw() << endl;
  cout << "D1mw:\t" << p.get_d1mw() << endl;
  cout << "Dw_ciclo:\t" << p.get_dw_ciclo() << endl;
  cout << "D1mw_ciclo:\t" << p.get_d1mw_ciclo() << endl;

  return 0;
}

